let instance = {
  set(key,value){
    localStorage.setItem(key,value);
  },
  get(key){
    return localStorage.getItem(key);
  },
  remove(key){
    localStorage.removeItem(key);
  },
  clearAll(){
    localStorage.clear();
  }
}

let store = {
  install(app){
    app.prototype.$storage = instance;
  },
  instance
}

export default store;